package com.htudata.live.pojo.vo;

import com.htudata.live.pojo.entity.BaseItemEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class DataTypesVO extends BaseItemEntity implements Serializable {
  private static final long serialVersionUID = -7187978092297300378L;
  
  private int dataTypeId;
  
  private String name;

  private List<FlowVO> child = new ArrayList<>();

  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof DataTypesVO))
      return false; 
    DataTypesVO other = (DataTypesVO)o;
    if (!other.canEqual(this))
      return false; 
    if (getDataTypeId() != other.getDataTypeId())
      return false; 
    Object this$name = getName(), other$name = other.getName();
    if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name))
      return false; 
    Object this$child = getChild(), other$child = other.getChild();
    return !((this$child == null) ? (other$child != null) : !this$child.equals(other$child));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof DataTypesVO;
  }

}
